<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/src/gui/widgets/qtabwidget.cpp -->
<head>
  <title>Qt 4.3: Qt 3 Support Members for QTabWidget</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">Qt 3 Support Members for QTabWidget</h1>
<p><b>The following class members are part of the <a href="qt3support.html">Qt 3 support layer</a>.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
<p><ul><li><a href="qtabwidget.html">QTabWidget class reference</a></li></ul></p>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"/><b><a href="qtabwidget-qt3.html#QTabWidget-2">QTabWidget</a></b> ( QWidget * <i>parent</i>, const char * <i>name</i>, Qt::WindowFlags <i>f</i> = 0 )</li>
<li><div class="fn"/>void <b><a href="qtabwidget-qt3.html#changeTab">changeTab</a></b> ( QWidget * <i>widget</i>, const QString &amp; <i>label</i> )</li>
<li><div class="fn"/>void <b><a href="qtabwidget-qt3.html#changeTab-2">changeTab</a></b> ( QWidget * <i>widget</i>, const QIcon &amp; <i>icon</i>, const QString &amp; <i>label</i> )</li>
<li><div class="fn"/>QWidget * <b><a href="qtabwidget-qt3.html#currentPage">currentPage</a></b> () const</li>
<li><div class="fn"/>int <b><a href="qtabwidget-qt3.html#currentPageIndex">currentPageIndex</a></b> () const</li>
<li><div class="fn"/>void <b><a href="qtabwidget-qt3.html#insertTab-2">insertTab</a></b> ( QWidget * <i>widget</i>, const QString &amp; <i>label</i>, int <i>index</i> = -1 )</li>
<li><div class="fn"/>void <b><a href="qtabwidget-qt3.html#insertTab-3">insertTab</a></b> ( QWidget * <i>widget</i>, const QIcon &amp; <i>icon</i>, const QString &amp; <i>label</i>, int <i>index</i> = -1 )</li>
<li><div class="fn"/>bool <b><a href="qtabwidget-qt3.html#isTabEnabled-2">isTabEnabled</a></b> ( QWidget * <i>widget</i> ) const</li>
<li><div class="fn"/>QString <b><a href="qtabwidget-qt3.html#label">label</a></b> ( int <i>index</i> ) const</li>
<li><div class="fn"/>int <b><a href="qtabwidget-qt3.html#margin">margin</a></b> () const</li>
<li><div class="fn"/>QWidget * <b><a href="qtabwidget-qt3.html#page">page</a></b> ( int <i>index</i> ) const</li>
<li><div class="fn"/>void <b><a href="qtabwidget-qt3.html#removeTabToolTip">removeTabToolTip</a></b> ( QWidget * <i>widget</i> )</li>
<li><div class="fn"/>void <b><a href="qtabwidget-qt3.html#setMargin">setMargin</a></b> ( int <i>margin</i> )</li>
<li><div class="fn"/>void <b><a href="qtabwidget-qt3.html#setTabEnabled-2">setTabEnabled</a></b> ( QWidget * <i>widget</i>, bool <i>b</i> )</li>
<li><div class="fn"/>void <b><a href="qtabwidget-qt3.html#setTabIconSet">setTabIconSet</a></b> ( QWidget * <i>widget</i>, const QIcon &amp; <i>icon</i> )</li>
<li><div class="fn"/>void <b><a href="qtabwidget-qt3.html#setTabLabel">setTabLabel</a></b> ( QWidget * <i>widget</i>, const QString &amp; <i>label</i> )</li>
<li><div class="fn"/>void <b><a href="qtabwidget-qt3.html#setTabToolTip-2">setTabToolTip</a></b> ( QWidget * <i>widget</i>, const QString &amp; <i>tip</i> )</li>
<li><div class="fn"/>QIcon <b><a href="qtabwidget-qt3.html#tabIconSet">tabIconSet</a></b> ( QWidget * <i>widget</i> ) const</li>
<li><div class="fn"/>QString <b><a href="qtabwidget-qt3.html#tabLabel">tabLabel</a></b> ( QWidget * <i>widget</i> ) const</li>
<li><div class="fn"/>QString <b><a href="qtabwidget-qt3.html#tabToolTip-2">tabToolTip</a></b> ( QWidget * <i>widget</i> ) const</li>
</ul>
<ul>
<li><div class="fn"/>60 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li><div class="fn"/>8 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li><div class="fn"/>8 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<h3>Public Slots</h3>
<ul>
<li><div class="fn"/>void <b><a href="qtabwidget-qt3.html#removePage">removePage</a></b> ( QWidget * <i>widget</i> )</li>
<li><div class="fn"/>void <b><a href="qtabwidget-qt3.html#setCurrentPage">setCurrentPage</a></b> ( int <i>index</i> )</li>
<li><div class="fn"/>void <b><a href="qtabwidget-qt3.html#showPage">showPage</a></b> ( QWidget * <i>widget</i> )</li>
</ul>
<ul>
<li><div class="fn"/>1 public slot inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
</ul>
<h3>Signals</h3>
<ul>
<li><div class="fn"/>void <b><a href="qtabwidget-qt3.html#currentChanged-2">currentChanged</a></b> ( QWidget * <i>widget</i> )</li>
<li><div class="fn"/>void <b><a href="qtabwidget-qt3.html#selected">selected</a></b> ( const QString &amp; <i>tabLabel</i> )</li>
</ul>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="QTabWidget-2"></a>QTabWidget::QTabWidget ( <a href="qwidget.html">QWidget</a> * <i>parent</i>, const char * <i>name</i>, <a href="qt.html#WindowType-enum">Qt::WindowFlags</a> <i>f</i> = 0 )</h3>
<p>Use one of the constructors that doesn't take the <i>name</i> argument and then use <a href="qobject.html#objectName-prop">setObjectName</a>() instead.</p>
<h3 class="fn"><a name="changeTab"></a>void QTabWidget::changeTab ( <a href="qwidget.html">QWidget</a> * <i>widget</i>, const <a href="qstring.html">QString</a> &amp; <i>label</i> )</h3>
<p>Use <a href="qtabwidget.html#setTabText">setTabText</a>() instead.</p>
<h3 class="fn"><a name="changeTab-2"></a>void QTabWidget::changeTab ( <a href="qwidget.html">QWidget</a> * <i>widget</i>, const <a href="qicon.html">QIcon</a> &amp; <i>icon</i>, const <a href="qstring.html">QString</a> &amp; <i>label</i> )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use <a href="qtabwidget.html#setTabText">setTabText</a>() and <a href="qtabwidget.html#setTabIcon">setTabIcon</a>() instead.</p>
<h3 class="fn"><a name="currentChanged-2"></a>void QTabWidget::currentChanged ( <a href="qwidget.html">QWidget</a> * <i>widget</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use currentChanged(int) instead.</p>
<h3 class="fn"><a name="currentPage"></a><a href="qwidget.html">QWidget</a> * QTabWidget::currentPage () const</h3>
<p>Use <a href="qtabwidget.html#currentWidget">currentWidget</a>() instead.</p>
<p>See also <a href="qtabwidget-qt3.html#setCurrentPage">setCurrentPage</a>().</p>
<h3 class="fn"><a name="currentPageIndex"></a>int QTabWidget::currentPageIndex () const</h3>
<p>Use <a href="qtabwidget.html#currentIndex-prop">currentIndex</a>() instead.</p>
<h3 class="fn"><a name="insertTab-2"></a>void QTabWidget::insertTab ( <a href="qwidget.html">QWidget</a> * <i>widget</i>, const <a href="qstring.html">QString</a> &amp; <i>label</i>, int <i>index</i> = -1 )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use insertTab(index, widget, label) instead.</p>
<h3 class="fn"><a name="insertTab-3"></a>void QTabWidget::insertTab ( <a href="qwidget.html">QWidget</a> * <i>widget</i>, const <a href="qicon.html">QIcon</a> &amp; <i>icon</i>, const <a href="qstring.html">QString</a> &amp; <i>label</i>, int <i>index</i> = -1 )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use insertTab(index, widget, icon, label) instead.</p>
<h3 class="fn"><a name="isTabEnabled-2"></a>bool QTabWidget::isTabEnabled ( <a href="qwidget.html">QWidget</a> * <i>widget</i> ) const</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use isTabEnabled(tabWidget-&gt;indexOf(widget)) instead.</p>
<h3 class="fn"><a name="label"></a><a href="qstring.html">QString</a> QTabWidget::label ( int <i>index</i> ) const</h3>
<p>Use <a href="qtabwidget.html#tabText">tabText</a>() instead.</p>
<h3 class="fn"><a name="margin"></a>int QTabWidget::margin () const</h3>
<p>This function is kept only to make old code compile. This functionality is no longer supported by <a href="qtabwidget.html">QTabWidget</a>.</p>
<p>See also <a href="qtabwidget-qt3.html#setMargin">setMargin</a>(), <a href="qwidget.html#contentsRect">contentsRect</a>(), and <a href="qwidget.html#setContentsMargins">setContentsMargins</a>().</p>
<h3 class="fn"><a name="page"></a><a href="qwidget.html">QWidget</a> * QTabWidget::page ( int <i>index</i> ) const</h3>
<p>Use <a href="qtabwidget.html#widget">widget</a>() instead.</p>
<h3 class="fn"><a name="removePage"></a>void QTabWidget::removePage ( <a href="qwidget.html">QWidget</a> * <i>widget</i> )&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Use removeTab(indexOf(widget)) instead.</p>
<h3 class="fn"><a name="removeTabToolTip"></a>void QTabWidget::removeTabToolTip ( <a href="qwidget.html">QWidget</a> * <i>widget</i> )</h3>
<p>Use setTabToolTip(tabWidget-&gt;indexOf(widget), QString()) instead.</p>
<h3 class="fn"><a name="selected"></a>void QTabWidget::selected ( const <a href="qstring.html">QString</a> &amp; <i>tabLabel</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted whenever a tab is selected (raised), including during the first <a href="qwidget.html#show">show</a>().</p>
<p>You can normally use <a href="qtabwidget.html#currentChanged">currentChanged</a>() instead.</p>
<h3 class="fn"><a name="setCurrentPage"></a>void QTabWidget::setCurrentPage ( int <i>index</i> )&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Use <a href="qtabwidget.html#currentIndex-prop">setCurrentIndex</a>() instead.</p>
<p>See also <a href="qtabwidget-qt3.html#currentPage">currentPage</a>().</p>
<h3 class="fn"><a name="setMargin"></a>void QTabWidget::setMargin ( int <i>margin</i> )</h3>
<p>This function is kept only to make old code compile. This functionality is no longer supported by <a href="qtabwidget.html">QTabWidget</a>.</p>
<p>See also <a href="qtabwidget-qt3.html#margin">margin</a>(), <a href="qwidget.html#contentsRect">contentsRect</a>(), and <a href="qwidget.html#setContentsMargins">setContentsMargins</a>().</p>
<h3 class="fn"><a name="setTabEnabled-2"></a>void QTabWidget::setTabEnabled ( <a href="qwidget.html">QWidget</a> * <i>widget</i>, bool <i>b</i> )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use isTabEnabled(tabWidget-&gt;indexOf(widget), b) instead.</p>
<h3 class="fn"><a name="setTabIconSet"></a>void QTabWidget::setTabIconSet ( <a href="qwidget.html">QWidget</a> * <i>widget</i>, const <a href="qicon.html">QIcon</a> &amp; <i>icon</i> )</h3>
<p>Use setTabIcon(tabWidget-&gt;indexOf(widget), icon) instead.</p>
<p>See also <a href="qtabwidget-qt3.html#tabIconSet">tabIconSet</a>().</p>
<h3 class="fn"><a name="setTabLabel"></a>void QTabWidget::setTabLabel ( <a href="qwidget.html">QWidget</a> * <i>widget</i>, const <a href="qstring.html">QString</a> &amp; <i>label</i> )</h3>
<p>Use setTabText(tabWidget-&gt;indexOf(widget), label) instead.</p>
<p>See also <a href="qtabwidget-qt3.html#tabLabel">tabLabel</a>().</p>
<h3 class="fn"><a name="setTabToolTip-2"></a>void QTabWidget::setTabToolTip ( <a href="qwidget.html">QWidget</a> * <i>widget</i>, const <a href="qstring.html">QString</a> &amp; <i>tip</i> )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use setTabToolTip(tabWidget-&gt;indexOf(widget), tip) instead.</p>
<h3 class="fn"><a name="showPage"></a>void QTabWidget::showPage ( <a href="qwidget.html">QWidget</a> * <i>widget</i> )&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Use setCurrentIndex(indexOf(widget)) instead.</p>
<h3 class="fn"><a name="tabIconSet"></a><a href="qicon.html">QIcon</a> QTabWidget::tabIconSet ( <a href="qwidget.html">QWidget</a> * <i>widget</i> ) const</h3>
<p>Use tabIcon(tabWidget-&gt;indexOf(widget)) instead.</p>
<p>See also <a href="qtabwidget-qt3.html#setTabIconSet">setTabIconSet</a>().</p>
<h3 class="fn"><a name="tabLabel"></a><a href="qstring.html">QString</a> QTabWidget::tabLabel ( <a href="qwidget.html">QWidget</a> * <i>widget</i> ) const</h3>
<p>Use tabText(tabWidget-&gt;indexOf(widget)) instead.</p>
<p>See also <a href="qtabwidget-qt3.html#setTabLabel">setTabLabel</a>().</p>
<h3 class="fn"><a name="tabToolTip-2"></a><a href="qstring.html">QString</a> QTabWidget::tabToolTip ( <a href="qwidget.html">QWidget</a> * <i>widget</i> ) const</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use tabToolTip(tabWidget-&gt;indexOf(widget)) instead.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2008 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.3.5</div></td>
</tr></table></div></address></body>
</html>
